# 找出一百以内的偶数
def main_1():
    list = []
    for i in range(1, 100):  # 不包含100
        if i % 2 == 0:
            list.append(i)
    print(list)


# 找出一百以内的奇数
def main_2():
    list = []
    for i in range(1, 100, 2):
        list.append(i)
    print(list)


# 判断一个数是否为素数
def main_3():
    num = int(input("请输入一个数："))
    if num == 1:
        print("不是素数")
    else:
        for i in range(2, num):
            if num % i == 0:
                print("不是素数")
                break
        else:
            print("是素数")
